import { axios } from "@/services/axios";

const Contracts = {
  get: data => axios.get(`api/contracts/${data.id}`),
  getlist: params => axios.post(`api/contracts/list`, params),
  getsellist: params => axios.post(`api/contracts/sellist`, params),
  create: data => axios.post("api/contracts", data),
  getid: data => axios.get("api/contracts", data),
  save: data => axios.post(`api/contracts/${data.id}`, data),
  delete: data => axios.post(`api/contracts/delete/${data.id}`),
  getactivity: data => axios.get(`api/contractsactivity/${data.id}/${data.sourcetype}`),
  sendmail: data => axios.post("api/contracts/sendmail", data),
};

export default Contracts;


